//
//  YahooIdentify.h
//  HelloWorld
// *********************************************************************
// Encapsulates a single identity that belongs to the current session.
// Yahoo enables users to have multiple personas via identities (aka
// profiles).  The 'primary' identity is the original Yahoo account,
// and all other identities are aliases thereof.
//
// Support for identities appears to have been tacked onto messenger
// after its initial release, being inconsistent and patchy in its
// implementation.  For example, while much of the protocol supports
// secondary identities (even logging into Yahoo messenger using a
// secondary identity is possible) other parts can only accept primary
// identities - for example sending a notify packet tagged with a
// secondary identity will result in the Yahoo server re-tagging the
// packet with the associated primary identity before it is delivered
// to its target.
//
// This 're-tagging' opens up potential security/privacy problems, as
// packets such as notify can betray the senders true identity.  They
// can also confuse the hell out of a Yahoo client (even the official
// client) if two IM windows are open to the same user under two or
// more of the identities, as all notify 'events' will be indicated in
// said users primary identity.
// *********************************************************************
//  Created by Martin Le C. on 5/13/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface YahooIdentity : NSObject {
	NSString *yahooId;
	@private 
	BOOL primary;
	@private
	BOOL login;
	@private
	BOOL active;
}
@property (nonatomic, assign) NSString *yahooId;
@property (nonatomic, assign) BOOL primary;
@property (nonatomic, assign) BOOL login;
@property (nonatomic, assign) BOOL active;
-(NSString*) toString;
@end